import Vue from 'vue'
import Fenlei from '@/views/Fenlei'
import Index from '@/views/Index'
import My from '@/views/My'
import Order from '@/views/Order'
// 引入vue-router
import VueRouter from 'vue-router'
// 2.让vue使用这个vueRouter这个插件
Vue.use(VueRouter)
// 3.创建路由实例
const router = new VueRouter({
  routes: [
    {
      path: '/fenlei',
      component:Fenlei
    },
    {
      path: '/index',
      component:Index
    },
    {
      path: '/my',
      component:My
    },
    {
      path: '/order',
      component:Order
    }
  ]
})
export default router